<?	/* SECURITY (don't touch) */
	define('_INCL',1); require_once('../../_Core/Config.php');
	/**************************/

//$_ENV['Headers'] .= '<meta name="keywords" content="'.$_ENV['SiteKeywords'][_LANG].'">'.PHP_EOL;
//$_ENV['Headers'] .= '<meta name="description" content="'.$_ENV['SiteDescription'][_LANG].'">'.PHP_EOL;
//$Linkfiles[] = $_ENV['URLs']['RootUrl'].'index.css';

foreach($Linkfiles as $URI){
	$Type = pathinfo($URI, PATHINFO_EXTENSION);
	if(_DEBUG){ $URI .= '?'.$_SERVER['REQUEST_TIME']; }
	if( $Type==='css' ){
		$_ENV['Headers'] .= '<link rel="stylesheet" href="'.$URI.'" type="text/css" media="screen">'.PHP_EOL;
	} else if( $Type==='png' || $Type==='.ico' ){
		$_ENV['Headers'] .= '<link rel="shortcut icon" href="'.$URI.'" type="image/x-icon">'.PHP_EOL;
	} else if( $Type==='js' ){
		$_ENV['Headers'] .= '<script src="'.$URI.'"></script>'.PHP_EOL;
	}
} unset($Linkfiles);

echo "<!DOCTYPE HTML><html><head><title>$_ENV[SiteName] | Medlemskort</title>$_ENV[Headers]";
echo '<script>'.preg_replace('/(\s\s+|\t|\n)/','',$_ENV['UniversalJS']).'</script>'.PHP_EOL.'</head>'.PHP_EOL.'<body>';


flush();
	
	
	require(__DIR__.'/../QR.coding.php'); trackSeries();
	
	if( isset($_REQUEST['Action']) ){
		include_once('QRcreate.producer.php');
	} else {
		include_once('QRcreate.input.php');
		include_once('QRcreate.existing.php');
	}
	
?>
<div id="Wait">
<style scoped>
	div#Wait {
		display:none;
		position:fixed;top:0;bottom:0;left:0;right:0;
		z-index:100;
		background:rgba(255,255,255,0.7);
		background-image:url('../Wait.gif');
		background-repeat:no-repeat;
		background-attachment:fixed;
		background-position:center 30%;
	}
</style>
</div>
<?


/* DIVERSE */
	//echo '<pre>'; print_r($ProdSeries); echo '</pre>';//DEBUG

	//echo '<pre>Log: '; print_r($_ENV['Log']); echo '</pre>'.PHP_EOL;//DEBUG
	
	//echo '<p>FileRoot: '.$_ENV['FileRoot'].'</p>';
	
	//phpinfo();
	//echo '<pre>REQUEST: '; print_r($_REQUEST); echo '</pre>'.PHP_EOL;//DEBUG
	//echo '<pre>Session: '; print_r($_SESSION); echo '</pre>'.PHP_EOL;//DEBUG
	//echo '<pre>GD-info: '; print_r(gd_info()); echo '</pre>'.PHP_EOL;//DEBUG
	//echo '<pre>Environment: '; print_r($_ENV); echo '</pre>'.PHP_EOL;//DEBUG
	//echo '<pre>Constants, [user]: '; $xx= get_defined_constants(1); print_r($xx['user']); echo '</pre>'.PHP_EOL;//DEBUG
	//echo '<pre>GLOBALS: '; print_r($GLOBALS ); echo '</pre>'.PHP_EOL;//DEBUG
	//echo '<pre>Variables: '; print_r(get_defined_vars()); echo '</pre>'.PHP_EOL;//DEBUG
	//echo '<pre>Constants: '; print_r(get_defined_constants(1)); echo '</pre>'.PHP_EOL;//DEBUG
	//echo '<pre>Cookies: '; print_r($_COOKIE); echo '</pre>'.PHP_EOL;//DEBUG



echo "</body></html>";

Sess_Close();
?>